package router

import (
	"smart_home/mqtt/controllers"
	"smart_home/mqtt/system"
)

func init() {
	// 语音
	system.AddRouter(`^service/([a-z0-9]+)/say/([0-9]+)$`, &controllers.SayController{})
	// 命令确认
	system.AddRouter(`^service/([a-z0-9]+)/command/done$`, &controllers.CommandDoneController{})
	// 当前时间
	system.AddRouter(`^service/([a-z0-9]+)/time$`, &controllers.TimeNowController{})
	// 当前版本
	system.AddRouter(`^service/([a-z0-9]+)/version/info$`, &controllers.VersionInfoController{})
	// 设备开关状态
	system.AddRouter(`^app/equipment/([a-z0-9]+)/status/switched$`, &controllers.SwitchStatusController{})
}
//service/socket/dc4f2252fd35/status/switched
//app/equipment/dc4f2252fd35/status/switched